import 'dart:async';

import 'package:kepu/model/recommend_entity.dart';
import 'package:kepu/util/http_util.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'recommend_page_provider.g.dart';

@riverpod
class RecommendPageProvider extends _$RecommendPageProvider {
  @override
  FutureOr<RecommendEntity> build() async {
    var response = await DioInstance.instance().get(path: "search/recommend");
    return RecommendEntity.fromJson(response.data);
  }

}
